import { observable, action } from "mobx";

class UserStore {
    @observable user = {
        // "Distance": 9666804.2, "address": "fjdskjfdvdksjkfkjksjkcjdkjvk", "age": 23, "amount": null, "birthday": "2021-02-10T16:00:00.000Z", "city": "唐山", "email": null, "gender": "男", "guid": "186657119781591501526289", "header": "/upload/161335014084118665711978.jpg", "id": 7, "lat": 110, "lng": 110, "login_time": "2021-03-06T10:36:41.000Z", "marry": "已婚", "mobile": "18665711978", "nick_name": "记号笔", "status": 0, "vcode": "888888", "xueli": "其他"
    };

    @action setUser(user) {
        this.user = user;
    }

    // 清除用户信息
    @action clearUser() {
        this.user = {}
    }
}

export default new UserStore();